package com.lbb.util;

import java.util.ArrayList;
import java.util.List;


public class ParameterMappingTokenHandler implements com.lbb.util.TokenHandler {
	private List<ParamterMapping> parameterMappings = new ArrayList<ParamterMapping>();

	// content是参数名称 #{id} #{username}

	public String handleToken(String content) {
		parameterMappings.add(buildParameterMapping(content));
		return "?";
	}

	private ParamterMapping buildParameterMapping(String content) {
		ParamterMapping parameterMapping = new ParamterMapping(content);
		return parameterMapping;
	}

	public List<ParamterMapping> getParameterMappings() {
		return parameterMappings;
	}

	public void setParameterMappings(List<ParamterMapping> parameterMappings) {
		this.parameterMappings = parameterMappings;
	}

}
